|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectraar.world.RAWorldObject
raar.process.RAAgent
Overall class that brings all the process and agent stuff together. This class allows one to fully construct an agent.
| Field Summary | |
static java.lang.String |
AGENT_CLASS_NAME
|
static int |
SIZE
|
| Fields inherited from class raar.world.RAWorldObject |
OBJ_ELLIPSE, OBJ_RECTANGLE, rotation, SOBJ_AGENT, SOBJ_TRACE |
| Constructor Summary | |
RAAgent()
Default constructor |
|
RAAgent(java.util.Vector processes)
|
|
RAAgent(java.util.Vector processes,
boolean makeActors)
|
|
| Method Summary | |
void |
addProcess(RAProcess p)
|
boolean |
canBeExternal()
|
boolean |
canBeSimulated()
|
void |
connect(RAProcess outputProcess,
java.lang.String outputProcessRegister,
RAProcess inputProcess,
java.lang.String inputProcessRegister)
Connect a specified output to a specified input. |
RAGVectorObject |
createGVectorObject()
Create a GVectorObject. |
void |
disconnect(RAProcess outputProcess,
java.lang.String outputProcessRegister,
RAProcess inputProcess,
java.lang.String inputProcessRegister)
Disconnect a specified input from a specified output. |
void |
dump()
Dump all registers of all processes. |
RAActor |
getAngleActor()
|
java.awt.Color |
getColor()
Return the colour this object should be drawn in. |
java.util.Vector |
getConnections()
|
java.lang.String |
getName()
|
java.util.Vector |
getNormalProcesses()
Allows one to get only the normal processes. |
java.util.Vector |
getOtherProcesses()
Get the non-normal processes... |
RAProcess |
getProcess(java.lang.String na)
Return the process with given name. |
java.util.Vector |
getProcesses()
Return the compiled processes. |
RAActor |
getSpeedActor()
|
RAActor |
getTraceActor()
|
RAWorld |
getWorld()
Return the world the agent is in. |
boolean |
isConnected()
|
boolean |
isEditable()
|
boolean |
needsConnection()
|
void |
notifyAddedToWorld(RAWorld r,
java.awt.geom.Point2D.Double originalPosition,
double originalRotation)
Notify this agent that it has been added to the specified world -- from now on it can request this world to move it. |
void |
removeProcess(RAProcess p)
|
void |
replaceProcess(RAProcess p,
RAProcess newP)
Replace process p by newP. |
void |
reset()
Reset the agent. |
void |
runAgent()
Runs the agent once. |
void |
setName(java.lang.String s)
|
void |
setRotation(double rotation)
|
java.lang.String |
toString()
|
| Methods inherited from class raar.world.RAWorldObject |
getBounds, getClassName, getPosition, getRotation, getType, moveBy, setPosition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String AGENT_CLASS_NAME
public static final int SIZE
| Constructor Detail |
public RAAgent()
public RAAgent(java.util.Vector processes)
public RAAgent(java.util.Vector processes,
boolean makeActors)
| Method Detail |
public void setRotation(double rotation)
public void setName(java.lang.String s)
public java.lang.String getName()
public boolean isEditable()
public RAActor getSpeedActor()
public RAActor getAngleActor()
public RAActor getTraceActor()
public java.awt.Color getColor()
RAWorldObject
getColor in interface RAGVectorObjectSourcegetColor in class RAWorldObject
public void addProcess(RAProcess p)
throws RAException
RAException
public void removeProcess(RAProcess p)
throws RAException
RAException
public void replaceProcess(RAProcess p,
RAProcess newP)
throws RAException
RAException
public void connect(RAProcess outputProcess,
java.lang.String outputProcessRegister,
RAProcess inputProcess,
java.lang.String inputProcessRegister)
throws RAException
RAException
public void disconnect(RAProcess outputProcess,
java.lang.String outputProcessRegister,
RAProcess inputProcess,
java.lang.String inputProcessRegister)
public java.util.Vector getConnections()
public void notifyAddedToWorld(RAWorld r,
java.awt.geom.Point2D.Double originalPosition,
double originalRotation)
public RAWorld getWorld()
public void reset()
throws RAException
RAException
public void runAgent()
throws RAException
RAExceptionpublic java.util.Vector getProcesses()
public RAProcess getProcess(java.lang.String na)
public void dump()
public java.util.Vector getNormalProcesses()
public java.util.Vector getOtherProcesses()
public java.lang.String toString()
public boolean canBeSimulated()
public boolean canBeExternal()
public boolean needsConnection()
public boolean isConnected()
public RAGVectorObject createGVectorObject()
createGVectorObject in interface RAGVectorObjectSourcecreateGVectorObject in class RAWorldObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||